﻿namespace BestEasyCMS.Framework.Configuration
{
    /// <summary>
    /// 应用程序设置接口
    /// </summary>
    public interface IApplicationSettings
    {
        /// <summary>
        /// 日志名称
        /// </summary>
        string LoggerName { get; }
        /// <summary>
        /// 每页的结果数量
        /// </summary>
        string NumberOfResultsPerPage { get; }
        /// <summary>
        /// 默认数据库类型
        /// </summary>
        string DefaultDb { get; }
        string Domain { get; }
        string DomainAdmin { get; }


        /// <summary>
        /// 修改配置文件值
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        void UpdateAppSettingValue(string key, string value);
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        void AddAppSettingValue(string key, string value);
    }
}
